package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-03-04
 */
public class SettAccount extends Model<SettAccount> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 名称
     */
    private String name;

    /**
     * 开户行
     */
    private String openBank;

    /**
     * 银行卡号
     */
    private String card;

    /**
     * 初期余额
     */
    private BigDecimal initBalance;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否默认
     */
    private Boolean def;

    /**
     * 时间
     */
    private Date time;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 所属门店
     */
    private String storeId;

    /**
     * 所属公司
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getOpenBank() {
        return openBank;
    }

    public void setOpenBank(String openBank) {
        this.openBank = openBank;
    }
    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }
    public BigDecimal getInitBalance() {
        return initBalance;
    }

    public void setInitBalance(BigDecimal initBalance) {
        this.initBalance = initBalance;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Boolean getDef() {
        return def;
    }

    public void setDef(Boolean def) {
        this.def = def;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }
    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SettAccount{" +
            "id=" + id +
            ", name=" + name +
            ", openBank=" + openBank +
            ", card=" + card +
            ", initBalance=" + initBalance +
            ", remark=" + remark +
            ", def=" + def +
            ", time=" + time +
            ", balance=" + balance +
            ", storeId=" + storeId +
            ", companyId=" + companyId +
        "}";
    }
}
